﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MoreEPG.Model
{
    public class MCPersonInfo
    {
        /// <summary>
        /// Name of the Person
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// UID of the Program
        /// </summary>
        public string UID { get; set; }

        /// <summary>
        /// Hash Code of the Program for fast Search
        /// </summary>
        public int HashCode { get; set; }

        
        public void setHashCode()
        {
            this.HashCode = HelperClass.GetHashCode(Name);
        }

        public MCPersonInfo(string name, string uid)
        {
            this.Name = name;
            this.UID = uid;
            this.setHashCode();
        }

    }
}
